//
//  ByFootBallHandle.h
//  caipiao_ios
//
//  Created by mc on 2018/7/21.
//  Copyright © 2018年 ZhangZhanbin. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ByFootBallHandle : NSObject

@property (nonatomic, strong) NSMutableArray *resultArray;
@property (nonatomic, strong) NSMutableArray *tempArray;


+ (NSMutableArray *)getFinalSpfDataWithDic:(NSDictionary *)dic WithOtherModel:(ByNetModel *)HAD_Model;

//未开售 
+ (NSMutableArray *)getNoSaleDataWith:(NSDictionary *)dic WithCount:(NSInteger)count;

+ (NSMutableArray *)getFinalRspfDataWithDic:(NSDictionary *)dic WithOtherModel:(ByNetModel *)HHAD_Model;

+ (NSMutableArray *)getFinalGoalsDataWithDic:(NSDictionary *)dic WithOtherModel:(ByNetModel *)TTG_Model;

+ (NSMutableArray *)getFinalHalfAllDataWithDic:(NSDictionary *)dic WithOtherModel:(ByNetModel *)HAFU_Model;

+ (NSMutableArray *)getFinalScoresDataWithDic:(NSDictionary *)dic WithOtherModel:(ByNetModel *)CRS_Model;

+ (NSMutableArray *)getFootBallOriginalDataWithCount:(NSInteger)count WithItems:(NSArray *)array WithType:(NSInteger)type;

+ (NSMutableArray *)getFootBallSelectedDataWithArray:(NSArray *)array;


//取消数据选择
+ (void)deselectFootBallDataWithArray:(NSMutableArray *)selectedArray;

+ (NSMutableArray *)getFootBallAllRowDataArrayWithKey:(NSString *)key WithArray:(NSMutableArray *)array;


//注数计算
+ (NSInteger)getCountWithSelectedCount:(NSInteger)selectedCount withNumber:(NSInteger)number withArray:(NSMutableArray *)array;

//篮球注数计算
+ (NSInteger)getBasketBallCountWithSelectedCount:(NSInteger)selectedCount withNumber:(NSInteger)number withArray:(NSMutableArray *)array;

//构造足球投注
+ (NSMutableDictionary *)getFootBallNumWithSelectedData:(NSMutableArray *)dataArray WithType:(NSInteger)type;

+ (NSString *)getFootBallFreePassWithArray:(NSMutableArray *)dataArray;

//一场比赛只能选择一种投注类型
+ (BOOL)isOrNotClickWithSpfData:(NSMutableArray *)spfArray rspfData:(NSMutableArray *)rspfArray goalsData:(NSMutableArray *)goalsArray halfAllData:(NSMutableArray *)halfAllArray scoresData:(NSMutableArray *)scoresArray WithType:(NSInteger )type WithIndexPath:(NSIndexPath *)indexPath;

+ (BOOL)isOrNotClickWithRowSpfData:(NSMutableArray *)spfArray goalsData:(NSMutableArray *)goalsArray halfAllData:(NSMutableArray *)halfAllArray scoresData:(NSMutableArray *)scoresArray WithType:(NSInteger )type;


//有单关
+ (BOOL)hasSingleWithArray:(NSMutableArray *)dataArray;


//一场比赛 是否只有单关
+ (BOOL)oneGameIsOnlyHasSinglePass:(NSMutableArray *)dataArray;


+ (NSString *)getFootBallFreePassStringWithString:(NSString *)string;


+ (NSMutableDictionary *)getFootBallGameResultWithPlan:(NSString *)plan;

// 足球赛事解析
+ (NSString *)getGameResultStringWithSaiDic:(NSDictionary *)dic;


+ (NSString *)getFootBallGameResultWithOnePlan:(NSString *)plan;

// 根据选中数据 得到id字符串
+ (NSString *)getCurrentSelectedGameIDStringWithArray:(NSMutableArray *)dataArray;


//取消数据选择
+ (void)deselectBallDataWithArray:(NSMutableArray *)selectedArray WithRemainStr:(NSString *)str;

//篮球有单关
+ (NSInteger)getBasketBallSingleCountWithArray:(NSMutableArray *)array;

@end
